<template>
	<view class="container">
		<view class="bg-box box-1">
			<view class="user">
				<image :src="$img_path('/mall/5.png')" mode="aspectFill"></image>
				<view class="right">
					<view class="name">
						李阿姨
					</view>
					<view class="text">
						女 | 30岁 | 4年经验 | 本科 | 属虎 | 狮子座
					</view>
				</view>
			</view>
			<view class="tag-list">
				<view class="item" v-for="item in 4" :key="item">
					<image :src="$img_path('/pagesMine/14.png')" mode="widthFix"></image>
					<text class="one-row">标签标签标签标签</text>
				</view>
			</view>
		</view>
		
		<view class="bg-box box-2">
			<view class="title">
				求助意向
			</view>
			<view class="b-2-info">
				<view class="cell">
					工作职位：<text>护工、护理员</text>
				</view>
				<view class="cell">
					住家情况：<text>住家</text>
				</view>
			</view>
		</view>
		
		<view class="bg-box box-3">
			<view class="title">
				求助意向
			</view>
			<view class="b-3-text">
				内容内容内容内容内容内容内容内容内容内容内
				容内容内容内容内容内容内容内容内容内容内容
				内容内容内容内容内容内容内容内容内容内容内
				容内容内容内容内容内容内容内容
			</view>
			<view class="jn">
				<view class="t">
					<image :src="$img_path('/pagesRegion/18.png')" mode="widthFix"></image>
					<text>擅长技能：</text>
				</view>
				<view class="val">
					内容内容、内容内容、内容内容
				</view>
			</view>
		</view>
		
		<view class="box-4">
			<view class="title">
				认证证书
			</view>
			<view class="img">
				<image :src="$img_path('/mall/5.png')" mode="widthFix"></image>
			</view>
		</view>
		
		<view class="box-4 box-5">
			<view class="title">
				个人资历
			</view>
			<view class="bg-box b-5">
				<view class="left">
					<view class="t-1">
						生活照
					</view>
					<view class="t-2">
						个人风采生活照
					</view>
					<view class="t-3">
						5张
					</view>
				</view>
				<view class="right">
					<image :src="$img_path('/mall/5.png')" mode="aspectFill"></image>
					<image :src="$img_path('/mall/5.png')" mode="aspectFill"></image>
				</view>
			</view>
		</view>
		
		<view class="bg-box box-6">
			<view class="title">
				个人资历
			</view>
			<view class="time">
				·2021.06.14-2024.06.04
			</view>
			<view class="text">
				内容内容内容内容内容内容内容内容内容内容内
				容内容内容内容内容内容内容内容内容内容内容
				内容内容内容内容内容内容内容内容内容内容内
				容内容内容内容内容内容内容内容
			</view>
		</view>
		
		
		
		<view class="bottom-btn">
			<view class="b-box" v-if="false">
				<button @click.stop="$refs.confrimBox.open()">下架</button>
			</view>
			<view class="b-box s-1" v-if="false">
				<button @click.stop="edit">编辑</button>
				<button @click.stop="$refs.confrimBox.open()">上架</button>
			</view>
			<view class="b-box s-1 s-2" v-if="true">
				<button @click.stop="$refs.returnBox.open()">驳回</button>
				<button @click.stop="$refs.TGBox.open()">通过</button>
			</view>
		</view>
		
		
		<popupBox ref="confrimBox" contentBG="#ffffff">
			<view class="popup-con">
				<view class="title">
					提示
				</view>
				<view class="c-text">
					确定下架吗？
				</view>
			</view>
		</popupBox>
		
		<popupBox ref="returnBox" contentBG="#ffffff">
			<view class="popup-con">
				<view class="title">
					驳回
				</view>
				<view class="c-textarea">
					<textarea placeholder="请输入驳回原因" placeholder-class="pla-class"></textarea>
				</view>
			</view>
		</popupBox>
		
		<popupBox ref="TGBox" contentBG="#ffffff" cancelText="暂不上架" confirmText="立即上架">
			<view class="popup-con">
				<view class="title" style="padding-bottom: 80rpx;">
					通过
				</view>
			</view>
		</popupBox>
	</view>
</template>

<script>
	import popupBox from '@/components/popup/popup.vue'
	export default {
		components:{
			popupBox
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss" scoped>
.container{
	padding: 0 22rpx;
	box-sizing: border-box;
	.bg-box{
		box-sizing: border-box;
		background-color: #FFFFFF;
		border-radius: 20rpx;
		margin-top: 20rpx;
	}
	.box-1{
		.user{
			padding: 50rpx 22rpx;
			display: flex;
			align-items: center;
			image{
				width: 122rpx;
				height: 122rpx;
				border-radius: 50%;
			}
			.right{
				width: calc(100% - 122rpx);
				padding-left: 20rpx;
				.name{
					font-weight: bold;
					font-size: 36rpx;
					color: #000000;
					line-height: 50rpx;
				}
				.text{
					font-weight: 400;
					font-size: 28rpx;
					color: #333333;
					line-height: 40rpx;
					margin-top: 8rpx;
				}
			}
		}
		.tag-list{
			display: flex;
			flex-wrap: wrap;
			justify-content: space-between;
			padding: 0 22rpx 10rpx;
			box-sizing: border-box;
			border-top: 2rpx solid #EEEEEE;
			.item{
				width: calc(50% - 40rpx);
				display: flex;
				align-items: center;
				padding: 20rpx 0;
				image{
					width: 40rpx;
					height: 40rpx;
				}
				text{
					width: calc(100% - 40rpx);
					display: block;
					font-weight: 400;
					font-size: 28rpx;
					color: #333333;
					line-height: 40rpx;
					padding-left: 16rpx;
					box-sizing: border-box;
				}
			}
		}
	}
	.box-2{
		padding: 22rpx 22rpx 30rpx;
		.title{
			font-weight: bold;
			font-size: 32rpx;
			color: #000000;
			line-height: 44rpx;
		}
		.b-2-info{
			.cell{
				margin-top: 32rpx;
				font-weight: Regular;
				font-size: 32rpx;
				color: #333333;
				line-height: 44rpx;
				text{
					font-weight: bold;
					color: #000000;
				}
			}
		}
	}
	
	.box-3{
		padding: 22rpx 22rpx 32rpx;
		.title{
			font-weight: bold;
			font-size: 32rpx;
			color: #000000;
			line-height: 44rpx;
		}
		.b-3-text{
			font-weight: 400;
			font-size: 32rpx;
			color: #333333;
			line-height: 44rpx;
			margin-top: 32rpx;
		}
		.jn{
			margin-top: 32rpx;
			.t{
				display: flex;
				align-items: center;
				image{
					width: 26rpx;
					height: 34rpx;
				}
				text{
					font-weight: 400;
					font-size: 32rpx;
					color: #000000;
					line-height: 44rpx;
					margin-left: 18rpx;
				}
			}
			.val{
				font-weight: bold;
				font-size: 32rpx;
				color: #000000;
				line-height: 44rpx;
				margin-top: 20rpx;
			}
		}
	}
	.box-4{
		margin-top: 40rpx;
		.title{
			font-weight: bold;
			font-size: 36rpx;
			color: #000000;
			line-height: 50rpx;
		}
		.img{
			width: 100%;
			margin-top: 20rpx;
			image{
				width: 100%;
				height: auto;
			}
		}
	}
	.box-5{
		.b-5{
			padding: 20rpx 20rpx 26rpx 22rpx;
			display: flex;
			.left{
				width: calc(100% - 352rpx);
				font-size: 32rpx;
				line-height: 44rpx;
				.t-1{
					font-weight: bold;
					color: #000000;
				}
				.t-2,.t-3{
					color: #333333;
					font-weight: 400;
					margin-top: 12rpx;
				}
			}
			.right{
				display: flex;
				justify-content: flex-end;
				image{
					width: 156rpx;
					height: 156rpx;
					border-radius: 20rpx;
					margin-left: 20rpx;
				}
			}
		}
	}
	.box-6{
		padding: 20rpx 22rpx 58rpx;
		.title{
			font-weight: bold;
			font-size: 32rpx;
			color: #000000;
			line-height: 44rpx;
		}
		.time,.text{
			font-weight: 400;
			font-size: 32rpx;
			color: #333333;
			line-height: 44rpx;
			margin-top: 14rpx;
		}
	}
}

.bottom-btn{
	width: 100%;
	height: calc(constant(safe-area-inset-bottom) + 140rpx);
	height: calc(env(safe-area-inset-bottom) + 140rpx);
	.b-box{
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		width: 100%;
		padding: 20rpx 22rpx 0;
		padding-bottom: calc(constant(safe-area-inset-bottom) + 20rpx);
		padding-bottom: calc(env(safe-area-inset-bottom) + 20rpx);
		box-sizing: border-box;
		background-color: #FFFFFF;
		button{
			width: 100%;
			height: 96rpx;
			background: linear-gradient( 135deg, #FFA233 0%, #FB4C4C 100%);
			border-radius: 80rpx;
			font-weight: bold;
			font-size: 36rpx;
			color: #FFFFFF;
			line-height: 96rpx;
		}
		&.s-1{
			display: flex;
			justify-content: space-between;
			button{
				&:nth-child(1){
					width: 236rpx;
					height: 92rpx;
					background: #FFFFFF;
					border-radius: 80rpx 80rpx 80rpx 80rpx;
					border: 2rpx solid #FF4A4A;
					color: #FF4A4A;
					line-height: 92rpx;
				}
				&:nth-child(2){
					width: calc(100% - 258rpx);
				}
			}
		}
		&.s-2{
			button{
				width: calc(50% - 16rpx) !important;
			}
		}
	}
}

.popup-con{
	.title{
		text-align: center;
		font-weight: bold;
		font-size: 36rpx;
		color: #000000;
		line-height: 50rpx;
		padding: 28rpx 0 70rpx;
	}
	.c-text{
		font-weight: bold;
		font-size: 36rpx;
		color: #000000;
		line-height: 50rpx;
		padding-bottom: 66rpx;
	}
	
	.c-textarea{
		width: 508rpx;
		height: 198rpx;
		background: #FFFFFF;
		border-radius: 8rpx 8rpx 8rpx 8rpx;
		border: 2rpx solid #B4B4B4;
		margin-top: 18rpx;
		margin-bottom: 42rpx;
		textarea{
			width: 100%;
			height: 100%;
			padding: 22rpx 20rpx;
			box-sizing: border-box;
			/deep/ .pla-class{
				font-weight: 400;
				font-size: 32rpx;
				color: #B4B4B4;
				line-height: 44rpx;
			}
		}
	}
}
</style>
